﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace Tailord
{
    public partial class NakisSub : DevExpress.XtraReports.UI.XtraReport
    {
        public NakisSub()
        {
            InitializeComponent();
        }
        DataSet ds;
        DataTable dtNakis;
        public void fillTable(DataTable dt)
        {
            ds = new DataSet();
            dtNakis = new DataTable("dtNakis");
            ds.Tables.Add(dtNakis);
            dtNakis.Merge(dt);

            this.DataMember = dtNakis.TableName;
            this.DataSource = ds;

        }

        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            this.DataMember = dtNakis.TableName;
            this.DataSource = ds;

            tcNakisyeri.DataBindings.Add("Text", null, "dtNakis.Yer");
            tcNakisyazi.DataBindings.Add("Text", null, "dtNakis.Yazi");
        }
    }
}
